package pizza;

/**
 * @Auther: xiaofei
 * @Date: 2021/6/8 - 06 - 08 - 8:41
 * @Description: pizza
 * @version: 1.0
 */
public class FruitsPizza extends Pizza {
    //属性
    private String burdening;

    //方法

    public String getBurdening() {
        return burdening;
    }

    public void setBurdening(String burdening) {
        this.burdening = burdening;
    }

    //构造器

    public FruitsPizza() {
    }

    public FruitsPizza(String name, int size, double price, String burdening) {
        super(name, size, price);
        this.burdening = burdening;
    }
    //重写父类showPizza
    public String showPizza(){
        return super.showPizza()+"\n你要加入的水果："+burdening;
    }
}
